/**
 * Triangle.h
 *
 * Author:
 *   Chris Herbison
 *
 * Description:
 *   Header file for the Triangle class.
 */

#ifndef TRIANGLE_H
#define TRIANGLE_H

#include "ray.h"
#include "Object.h"
#include "BoundingBox.h"
#include <vector>

class Triangle: public Object{
     public:
          Triangle(IlluminationData _material, TextureData _texture,
                 Vector3 _normal, vector<Point3> _verticies);
          bool intersects(Ray r, IntersectData* data/*, ofstream* outf*/);
		  bool intersects(BoundingBox b);
          
          Vector3 normal;
          vector<Point3> verticies;
		  BoundingBox getBoundingBox();
};

#endif
